package com.zhoutao.blog.seven.model.detail;

import com.zhoutao.blog.seven.model.response.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class TagDetail extends Tag {

    private Long articleCount;

    public TagDetail(Tag tag, Long articleCount) {
        BeanUtils.copyProperties(tag, this);
        this.articleCount = articleCount;
    }
}
